package com.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author 
 */
public class Buyer implements Serializable {
    private String buid;

    private String buname;

    private String busex;

    private Date bubirthday;

    private String buimg;

    private String bupwd;

    private String busalt;

    List<Orderinfo> orderinfos;

    List<Orderinfo> unPayOrderinfos;

    public List<Orderinfo> getUnPayOrderinfos() {
        return unPayOrderinfos;
    }

    public void setUnPayOrderinfos(List<Orderinfo> unPayOrderinfos) {
        this.unPayOrderinfos = unPayOrderinfos;
    }

    public List<Orderinfo> getOrderinfos() {
        return orderinfos;
    }

    public void setOrderinfos(List<Orderinfo> orderinfos) {
        this.orderinfos = orderinfos;
    }

    private static final long serialVersionUID = 1L;

    public String getBuid() {
        return buid;
    }

    public void setBuid(String buid) {
        this.buid = buid;
    }

    public String getBuname() {
        return buname;
    }

    public void setBuname(String buname) {
        this.buname = buname;
    }

    public String getBusex() {
        return busex;
    }

    public void setBusex(String busex) {
        this.busex = busex;
    }

    public Date getBubirthday() {
        return bubirthday;
    }

    public void setBubirthday(Date bubirthday) {
        this.bubirthday = bubirthday;
    }

    public String getBuimg() {
        return buimg;
    }

    public void setBuimg(String buimg) {
        this.buimg = buimg;
    }

    public String getBupwd() {
        return bupwd;
    }

    public void setBupwd(String bupwd) {
        this.bupwd = bupwd;
    }

    public String getBusalt() {
        return busalt;
    }

    public void setBusalt(String busalt) {
        this.busalt = busalt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Buyer other = (Buyer) that;
        return (this.getBuid() == null ? other.getBuid() == null : this.getBuid().equals(other.getBuid()))
            && (this.getBuname() == null ? other.getBuname() == null : this.getBuname().equals(other.getBuname()))
            && (this.getBusex() == null ? other.getBusex() == null : this.getBusex().equals(other.getBusex()))
            && (this.getBubirthday() == null ? other.getBubirthday() == null : this.getBubirthday().equals(other.getBubirthday()))
            && (this.getBuimg() == null ? other.getBuimg() == null : this.getBuimg().equals(other.getBuimg()))
            && (this.getBupwd() == null ? other.getBupwd() == null : this.getBupwd().equals(other.getBupwd()))
            && (this.getBusalt() == null ? other.getBusalt() == null : this.getBusalt().equals(other.getBusalt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBuid() == null) ? 0 : getBuid().hashCode());
        result = prime * result + ((getBuname() == null) ? 0 : getBuname().hashCode());
        result = prime * result + ((getBusex() == null) ? 0 : getBusex().hashCode());
        result = prime * result + ((getBubirthday() == null) ? 0 : getBubirthday().hashCode());
        result = prime * result + ((getBuimg() == null) ? 0 : getBuimg().hashCode());
        result = prime * result + ((getBupwd() == null) ? 0 : getBupwd().hashCode());
        result = prime * result + ((getBusalt() == null) ? 0 : getBusalt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", buid=").append(buid);
        sb.append(", buname=").append(buname);
        sb.append(", busex=").append(busex);
        sb.append(", bubirthday=").append(bubirthday);
        sb.append(", buimg=").append(buimg);
        sb.append(", bupwd=").append(bupwd);
        sb.append(", busalt=").append(busalt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}